package com.example.controller;

import java.util.Date;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.example.model.User;
import com.example.utils.ResultVOUtil;

@RestController
@RequestMapping("/user")
public class UserController {

	@RequestMapping("/getUser")
	public Object getUser() {

		User u = new User();
		u.setName("fanjun");
		u.setAge(20);
		u.setBirthday(new Date());
		u.setPassword("123456");
		u.setDesc("fuck you");
		return ResultVOUtil.success(u);
	}

}
